<div class="bg-light lter b-b wrapper-md">
    <div class="input-group col-sm-12 row">
        <label class="h2 col-sm-4">资讯列表</label>
        <button class="btn m-b-xs w-xs btn-danger btn-rounded pull-right" ng-click="close()">关闭</button>
    </div>
</div>
<div class="wrapper-md">
    <div class="panel panel-default row">
        <table class="table table-striped">
            <tr>
                <td class="" style="width:15%">
                    <input type="text" class="col-sm-2 form-control" placeholder="资讯名称" ng-model="query.name">
                </td>
                <td style="width:5%">
                    <div class="input-group text-center">
                        <button type="button" class="btn m-b-xs w-xs btn-info btn-rounded" ng-click="clickSearch()">
                            查询
                        </button>
                    </div>
                </td>
                <td style="width:5%">
                    <div class="input-group text-center">
                        <button type="button" class="btn m-b-xs w-xs btn-primary btn-rounded" ng-click="config()">
                            确定
                        </button>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="table-responsive">
        <table class="table table-striped m-b-none">
            <thead>
            <tr>
                <th style="width:15%">资讯名称</th>
                <th style="width:5%">创建时间</th>
                <th style="width:5%">选择</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="information in rsp.data track by $index">
                <td><a ng-click="informationDetail($index)" title="查看详情">{{information.name}}</a></td>
                <td>{{information.createTime | date: "yyyy-MM-dd HH:mm"}}</td>
                <td>
                    <label class="i-checks m-b-none">
                        <input type="checkbox" checklist-model="selectedInformation"
                               checklist-value="information"><i></i>
                    </label>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="text-center text-lg text-danger" ng-show="!rsp.data || rsp.data.length==0">
            <h2>无可添加资讯</h2>
        </div>
        <div class="text-center">
            <pagination total-items="totalCount" items-per-page="perPageCount" ng-model="currentPage"
                        ng-change="pageChanged()" class="pagination m-t-sm m-b" boundary-links="true"
                        max-size="pageButtonNum" rotate="false" num-pages="pageCount" boundary-links="true"
                        previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;"
                        last-text="&raquo;"></pagination>
        </div>
        <div class="text-center">
            <span class="text text-lg text-primary">共 {{pageCount}} 页</span>
        </div>
    </div>
</div>